Установка модуля Series Generator Light для DLE

1. Содержимое папки uploads льем на сервер.

2. Создаем в админке доп поле с такими данными:

Название поля - video_links
Описание поля - Ссылки на видео
Подсказка для поля - Каждая ссылка с новой строчки
Тип поля - Несколько строк
Ставим галочку возле "Использовать при желании (можно оставить поле пуcтым)"


3. Открываем /engine/engine.php и ищем в нем код

switch ( $do ) {

НИЖЕ вставляем

case "generator" :
		include ENGINE_DIR . '/modules/generator.php';
		break;
		

4. Открываем /engine/modules/show.full.php и ищем в нем код

$tpl->set( '{full-story}', $row['full_story'] );

НИЖЕ вставляем

if ( $xfieldsdata['video_links'] ) {
			
			$links = "";
			$video_links = explode("\n", $xfieldsdata['video_links']);
			foreach ($video_links as $nomer_cikla => $link) {
				
				$nomer = $nomer_cikla + 1;
				$links .= "<a href='" . $config['http_home_url'] . $row['alt_name'] . "/episode/" . $nomer . ".html'  class='BatcoH BatcoH-5'>" . $nomer . " серия</a>";
				
			}
			
			$tpl->set( '{links}', $links );
			
		}
		
		
5. Открываем .htaccess в корне сайта и ниже строчки RewriteEngine On вставляем код

# Series Generator урезанная версия

RewriteRule ^([0-9]+)-(.*)/episode/([0-9]+).html$ index.php?do=generator&newsid=$1&seourl=$2&nomer=$3 [L]


6. Открываем любой css файл вашего шаблона, который подключен в main.tpl и вставляем в самый низ

.buttttons {
  display: table;
  height: 100%;
  width: 100%;
}

.kontaiher {
  display: table-cell;
  padding: 1em;
  text-align: center;
  vertical-align: middle;
}
.BatcoH {
  color: #57E994;
  cursor: pointer;
  display: block;
  font-size: 16px;
  font-weight: 400;
  line-height: 45px;
  margin: 0 auto 0.5em;
  max-width: 130px;
  position: relative;
  text-decoration: none;
  vertical-align: middle;
  width: 100%;
}
@media (min-width: 400px) {
  .BatcoH {
    display: inline-block;
    margin-right: 0.5em;
  }
  .BatcoH:nth-of-type(even) {
    margin-right: 0.5em;
  }
}
@media (min-width: 600px) {
  .BatcoH:nth-of-type(even) {
    margin-right: 0.5em;
  }
  .BatcoH:nth-of-type(5) {
    margin-right: 0.5em;
  }
}
.BatcoH:hover {
  text-decoration: none;
}

.BatcoH-prevnext {
  color: #57E994;
  cursor: pointer;
  display: block;
  font-size: 16px;
  font-weight: 400;
  line-height: 45px;
  margin: 0 auto 0.5em;
  max-width: 45%;
  position: relative;
  text-decoration: none;
  text-transform: uppercase;
  vertical-align: middle;
  width: 45%;
}
@media (min-width: 400px) {
  .BatcoH-prevnext {
    display: inline-block;
    margin-right: 0.5em;
  }
  .BatcoH-prevnext:nth-of-type(even) {
    margin-right: 0.5em;
  }
}
@media (min-width: 600px) {
  .BatcoH-prevnext:nth-of-type(even) {
    margin-right: 0.5em;
  }
  .BatcoH-prevnext:nth-of-type(5) {
    margin-right: 0.5em;
  }
}
.BatcoH-prevnext:hover {
  text-decoration: none;
}

.BatcoH-4 {
  border: 1px solid;
  overflow: hidden;
  position: relative;
}
.BatcoH-4 span {
  z-index: 20;
}
.BatcoH-4:after {
  background: #fff;
  content: "";
  height: 155px;
  left: -75px;
  opacity: .2;
  position: absolute;
  top: -50px;
  -webkit-transform: rotate(35deg);
          transform: rotate(35deg);
  -webkit-transition: all 550ms cubic-bezier(0.19, 1, 0.22, 1);
  transition: all 550ms cubic-bezier(0.19, 1, 0.22, 1);
  width: 50px;
  z-index: -10;
}

.BatcoH-4:hover:after {
  left: 120%;
  -webkit-transition: all 550ms cubic-bezier(0.19, 1, 0.22, 1);
  transition: all 550ms cubic-bezier(0.19, 1, 0.22, 1);
}

.BatcoH-5 {
  border: 0 solid;
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0);
  outline: 1px solid;
  outline-color: rgba(0, 255, 255, 0.5);
  outline-offset: 0px;
  text-shadow: none;
  -webkit-transition: all 1250ms cubic-bezier(0.19, 1, 0.22, 1);
  transition: all 1250ms cubic-bezier(0.19, 1, 0.22, 1);
}

.BatcoH-5:hover {
  border: 1px solid;
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.5), 0 0 20px rgba(255, 255, 255, 0.2);
  outline-color: rgba(255, 255, 255, 0);
  outline-offset: 15px;
  text-shadow: 1px 1px 2px #427388;
}


Цвета меняем по своему хотению, как? Учим css.

7. Открываем fullstory.tpl вашего шаблона и в то место где будет выводиться список серий вставляем

[xfgiven_video_links]
<section class="buttttons">
	<div class="kontaiher">{links}</div>
</section>
[/xfgiven_video_links]


8. В комплекте идет настроенный файл generator.tpl из стандартного шаблона Default. Настраивайте его по своему усмотрению.
Для вывода списка серий, видео и навигации по сериям используйте такой код

<iframe src="{episode_link}" width="100%" height="360" frameborder="0" allowfullscreen></iframe>
<section class="buttttons">
	<div class="kontaiher">{series_navigation}</div>
</section>
<section class="buttttons">
	<div class="kontaiher">{links}</div>
</section>

Также доступен тег, который содержит в себе номер текущей серии, его можно вставить на страницу серии в h1
{nomer}


Вот и все.

На пиво, чипсы, наркотики, шлюх и оружие можно отблагодарить рублем на вебмани. 
Мои кошельки:
R417794992142
Z244912848144
U357368699010

Не забываем посещать мой блог:
https://domitori.ru/